package process.ast;

import java.util.Vector;

import process.visitor.Visitor;

public class Workflow implements Node {
	Vector<Action> actions = new Vector<Action>();
	String id;

	
	public Workflow(String id) {
		super();
		this.id = id;
	}
	public Vector<Action> getActions() {
		return actions;
	}
	public void addAction(Action action) {
		actions.add(action);
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
//	public String toWorkflowString(){
//		String out ="[workflow "+this.getId() + "]";
//		for (Action a : actions) {
//			out += "\n" + a.toActionString();
//		}
//		return out;
//	}
	public void accept(Visitor visitor) {
		visitor.visit(this);
	}
	
}
